Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightningd: deprecate decodepay. #7551

Merged

Conversation

rustyrussell
Copy link
Contributor

It only works on BOLT11, and has long been replaced by the more generic "decode".

Removing it will stop the confusion!

(Note: documentation claims it was introduced in 23.08, but that was
wrong, as it's been in CLN since the beginning).

Fixes: #6419
Changelog-Deprecated: JSON-RPC: decodepay: use decode.

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some CI failure here and there

===End Flaky Test Report===
=========================== short test summary info ============================
FAILED tests/test_cln_rs.py::test_grpc_decode - grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = "Error calling method DecodePay: RpcError { code: Some(-32601), message: "Command \"decodepay\" is deprecated", data: None }"
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Error calling method DecodePay: RpcError { code: Some(-32601), message: \"Command \\\"decodepay\\\" is deprecated\", data: None }", grpc_status:2, created_time:"2024-08-11T04:19:59.35794186+00:00"}"
>
=========== 1 failed, 613 passed, 156 skipped in 1521.13s (0:25:21) ============

@rustyrussell rustyrussell force-pushed the guilt/deprecate-decodepay branch from b73b30b to 267a753 Compare November 10, 2024 11:56
@rustyrussell
Copy link
Contributor Author

Trivial rebase, and changed deprecation from 24.08 to 24.11.

It only works on BOLT11, and has long been replaced by the more
generic "decode".

Removing it will stop the confusion!

(Note: documentation claims it was introduced in 23.08, but that was
 wrong, as it's been in CLN since the beginning).

[ Fixup from: niftynei <[email protected]> ]
Fixes: ElementsProject#6419
Changelog-Deprecated: JSON-RPC: `decodepay`: use `decode`.
Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell force-pushed the guilt/deprecate-decodepay branch from 267a753 to 3ddde12 Compare November 11, 2024 22:42
@rustyrussell rustyrussell merged commit fcebb33 into ElementsProject:master Nov 17, 2024
28 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

For an invoice generated via an offer, decodepay isn't working anymore, while pay still is
2 participants